package com.demo.dao;

import com.demo.domain.Banner;
import com.demo.domain.CarToon;
import com.demo.domain.Grid;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
/**
 * 首页dao层
 */
import java.util.List;
@Repository
public interface HomeDao {
    //获取所有轮播图数据
    @Select("select * from banner")
    public List<Banner> findAllBanners();

    //获取所有导航栏数据
    @Select("select * from grid")
    public  List<Grid> findAllGrids();

    //获取所有漫画模块数据
    @Select("select * from cartoon")
    public List<CarToon> findAllCarToons();
}
